package org.zfes.snowier.cloud.zbss.layer.tc.biz.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.common.dao.params.ParamMap;
import org.zfes.snowier.cloud.zbss.layer.tc.biz.model.Percentage;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface PercentageMapper extends BaseMapper<Percentage>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<Percentage> selectModelListPage(ParamMap params);
	
	Percentage selectByCasNum( @Param("caseNum")String caseNum );

	Percentage selectByCaseFileNum(@Param("caseFileNum")String caseFileNum);

	Percentage selectByCaseAgreementNum(@Param("caseAgreementNum")String caseAgreementNum);
	
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);

	int updateCaseLiAnStatus(@Param("ids")List<Long> ids, @Param("caseLiAnStatus")Integer caseLiAnStatus);

	int updateCaseJieAnStatus(@Param("ids")List<Long> ids, @Param("caseJieAnStatus")Integer caseJieAnStatus);

	int updateCaseTuiFeiStatus(@Param("ids")List<Long> ids,@Param("caseTuiFeiStatus") Integer caseTuiFeiStatus);
	
	int updateCheckStatus(@Param("ids")List<Long> ids, @Param("checkStatus") Integer  checkStatus);
	
	
	
	String selectMaxCaseNumInDate(@Param("dateStr")String dateStr);
	
	
	
	List<Percentage> selectByWeiTuoRenName(@Param("id")Long id, @Param("weiTuoRenName")String weiTuoRenName);

	//List<Map<String, Object>> selectSumCount(ParamMap params);

	List<Record> selectSumCount(ParamMap params);

	
	
}
